﻿using System.Configuration;

namespace TestWebApplication.Models.Config
{
    public class EmailNotificationServiceConfig : ConfigurationSection, IEmailNotificationServiceConfig
    {

        [ConfigurationProperty("SmtpHost", IsRequired = true)]
        public string SmtpHost
        {
            get { return (string)this["SmtpHost"]; }
        }

        [ConfigurationProperty("SmtpUserName", IsRequired = true)]
        public string SmtpUserName
        {
            get { return (string)this["SmtpUserName"]; }
        }

        [ConfigurationProperty("SmtpPassword", IsRequired = true)]
        public string SmtpPassword
        {
            get { return (string)this["SmtpPassword"]; }
        }

        [ConfigurationProperty("MessageFrom", IsRequired = true)]
        public string MessageFrom
        {
            get { return (string)this["MessageFrom"]; }
        }

    }
}